﻿using Microsoft.AspNetCore.Mvc;
using ZeroBlog.Application.Tests;
using ZeroBlog.Application.Tests.Dtos.In;

namespace ZeroBlog.Api.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class TestController : ControllerBase
    {
        private readonly ITestApplicationService _testApplicationService;

        public TestController(ITestApplicationService testApplicationService)
        {
            _testApplicationService = testApplicationService;
        }

        [HttpPost]
        public async Task Add([FromBody] AddTestDto dto)
        {
            await _testApplicationService.Add(dto);
        }

    }
}